0) { $arr=mysql_fetch_array ($res); if ((md5($MD5_PREFIX.$TPL_password) == $arr[password]) || $HTTP_COOKIE_VARS["$LOGGED_IN_COOKIE"]) { if(!$HTTP_COOKIE_VARS["$LOGGED_IN_NICK"]) { //-- Login user setcookie($LOGGED_IN_COOKIE,$arr["id"]); setcookie($LOGGED_IN_NICK,$TPL_nick); } $TPL_id_hidden=$arr[id]; $TPL_name=$arr[name]; $TPL_nick=$arr[nick]; $TPL_password=""; $TPL_repeat_password=""; $TPL_email=$arr[email]; $TPL_birthdate=$arr[birthdate ]; $TPL_address=$arr[address]; $TPL_city=$arr[city]; $TPL_prov=$arr[prov]; $TPL_country=$arr[country]; $TPL_zip=$arr[zip]; $TPL_phone=$arr[phone]; $TPL_status = $arr[status]; $TPL_p18 = $arr[p18]; $TPL_newsletter = $arr[newsletter]; if ($arr[rate_num]) { $TPL_rate=round($arr[rate_sum]/$arr[rate_num]); } else { $TPL_rate=0; } $TPL_birthdate = substr($TPL_birthdate,6,2).".". substr($TPL_birthdate,4,2).".". substr($TPL_birthdate,0,4); $country=""; while (list ($code, $name) = each ($countries)) { $bodi = $code + 1; $country .= "